home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Utilities
/
Converters
/
Convert_FONT
/
Source
/
shared.subproj
/
RCS
/
AbstractConverter.m,v
< prev
next >
Wrap
Text File
|
1995-06-12
|
4KB
|
123 lines
head 1.3;
branch ;
access ;
symbols beta10:1.2;
locks death:1.3;
comment @@;
1.3
date 93.04.04.23.44.10; author death; state Exp;
branches ;
next 1.2;
1.2
date 93.01.10.15.07.32; author death; state Exp;
branches ;
next 1.1;
1.1
date 92.07.26.13.56.41; author death; state Exp;
branches ;
next ;
desc
@Serves as a basic primitive converter object...
@
1.3
log
@Sun Apr 4 23:44:10 PDT 1993
@
text
@#import "AbstractConverter.h"
@@implementation AbstractConverter
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Method: init
// Parameters: none
// Returns: none
// Stores: none
// Description:
// Initalizes an instance... namely by defining th manager instance as null
// Bugs:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- init
{
myManager = NullInstance;
return self;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Method: ReportTo:
// Parameters: The caller
// Returns: none
// Stores: none
// Description:
// ConvertController's use this to tell the converter what object to report status
// to. That is, we must tell sender when we are, for example, 50% of the way
// done so it can let the user know what's going on. Subclasses should have no
// need of subclassing this. It will always be set up before a call to the main
// conversion routine.
// Bugs:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- ReportTo: sender
{
myManager = sender;
return self;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Method: isThisAGoodFile:
// Parameters: A File instance
// Returns: YES if it is, NO if it isn't.
// Stores: none
// Description:
// A converter, in addition to converting a file X to a file Y, should be able to
// identify when a source file is a legitimate file for conversion. In the case of
// this abstract class, this method does nothing. A subclass, however, will
// subclass this method and have it examine the specified file, and determine
// if it's a legit file or not. It returns YES if the file is good, or NO if the file is
// questionable or bad.
// Bugs:
// We need to use the proposed Fact datatype here, instead of Boolean.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- (Boolean) isThisAGoodFile: Instance
{
return YES;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Method: some conversion routine
// Description:
// Additionally, subclasses will want to include a routine to convert stuff
// here. =)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@end
@
1.2
log
@Sun Jan 10 15:07:32 PST 1993
@
text
@@
1.1
log
@Initial revision
@
text
@@